package com.zch.mobile;

import com.base.mobile.IMError;

public enum MZchError implements IMError {
	SERVER_BUSY_ERROR(10000,"服务器忙，请稍后再试"),
	CONTENT_NOT_EXIST(20001,"内容不存在"),
	CHAT_SELF_ERROR(20002,"不能跟自己聊天"),
	CHAT_USER_NULL(20003,"会话不存在"),
	CHAT_LENGTH_OUT(20004,"内容超出字数限制"),
	CHAT_SEND_ERROR(20005,"消息发送失败"),
	HAVE_NO_ZAITI_MSG(20006,"暂无入驻企业");
	;
	
	/** 错误编码 */
	private int errorCode;

	/** 错误信息 */
	private String errorMsg;
	
	/**
	 * 构造函数
	 */
	private MZchError(int errorCode, String errorMsg) {
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	/**
	 * @return int 错误代码
	 */
	public int getErrorCode() {
		return errorCode;
	}

	/**
	 * @return String 错误信息
	 */
	public String getErrorMsg() {
		return errorMsg;
	}
}
